package org.example.wikwok.pojo;

import java.io.Serializable;

public class CommentInfo<T> implements Serializable {
    private static final long serialVersionUID = 1L;
   private T comment;
   private User author;

    public CommentInfo(T comment, User author) {
        this.comment = comment;
        this.author = author;
        author.setPassword("无权限访问");
    }

    public T getComment() {
        return comment;
    }

    public void setComment(T comment) {
        this.comment = comment;
    }

    public User getAuthor() {
        return author;
    }

    public void setAuthor(User author) {
        this.author = author;
    }
}
